<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/jsp/commons/taglibs.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:ng="http://angularjs.org" id="ng-app" ng-app="moil">
<head>
    <%@include file="/WEB-INF/jsp/commons/meta.jsp" %>
    <title>${title}</title>
    <meta charset="utf-8">
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <!-- 响应式设计 -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


</head>
<body ng-controller="AllDocCtrl">
<div id="messageCon" style="display: none;"></div>
<div id="u_header">
    <img id="u_logo" src="${ctx}/resources/css/image/logo.min.png" style="height: 45px;"/>
    <span style="color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    height: 30px;
    line-height: 30px;
    position: absolute;
    top: 18px;">企信安-移动设备管理平台</span>

    <div class="u_header_tools" style="color: #FFFFFF;line-height:68px;padding-right: 10px;">

        <a href="${ctx}/web/home.html" target="iframe" style="color: #ffffff;text-decoration: none;margin-right: 20px;">
            <i class="icon-white icon-home"></i> 主页
        </a>
        <i class="icon-white icon-time"></i> <span id="nowTime"></span>
    </div>
</div>
<div id="u_main">
    <div id="u_nav">
        <div class="u_user_box">
            <div class="u_user_photo u_bg">
                <img class="u_user_img" id="userimg" style="margin: 4px 0px 0px 2px; height: 48px; width: 48px;"
                     src="${ctx}/web/res/images/u_logo.png"/>
            </div>
            <div class="u_user_lg_info">
                <span class="u_user_name">${USER.name}</span>
                <a title="注销登陆" href="${ctx}/j_spring_security_logout" class="u_user_lgout u_bg u_btn">注销</a>
            </div>

        </div>
        <div class="u_nav_bar_box">
            <ul class="u_nav_bars">

                <c:forEach items="${groupMap}" var="group">
                    <li><i class="${group.value.icon}"></i> <a href="javascript:void(0);">${group.value.name}</a>
                            <%--<li><i class="u_icon-setting"></i> <a href="javascript:void(0);">${group.value.name}</a>--%>
                        <ul class="u_child_nav">
                            <c:forEach items="${menuMap[group.key]}" var="menu">
                                <li>
                                    <i class="${menu.icon}"></i>
                                    <a href="${ctx}${menu.url}" target="iframe">${menu.name}</a>
                                </li>
                            </c:forEach>
                        </ul>
                    </li>
                </c:forEach>

            </ul>
        </div>


    </div>
    <div id="u_content">
        <div class="u_content_box">
            <iframe name="iframe" frameborder="0" id="iframePage" src="${ctx}/web/home.html"></iframe>
        </div>
    </div>
</div>
<div id="u_footer">
    <p>
        Copyright@2013-2113 深圳市飞天网景通讯有限公司 - <span>V1.0.0</span>
    </p>
</div>
<script type="text/javascript" src="${ctx}/web/res/js/menu.js"></script>
<script type="text/javascript">
    (function () {
        angular.module("moil", []);
        window.AllDocCtrl = function ($scope, $rootScope) {

        }
    })();
</script>
</body>
</html>
